﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hisun.UserControl.Query
{
    /// <summary>
    /// 单个产品选择控件
    /// Copyright (C) 2008 HOHO``
    /// All rights reserved
    /// NameSpace:Hisun.UserControl.Query.ProductSelect
    /// Description :
    /// Created By QiuZhongJie At 2008/11/4 20:40
    /// </summary>
    public partial class ProductSelect : System.Web.UI.UserControl
    {
        public string SelectedProductID
        {
            get { return txtProductID.Text; }
            set { txtProductID.Text = value; }
        }

        public string SelectedProductName
        {
            set { txtProductName.Text = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            txtProductName.Attributes.Add("onclick", string.Format(@"OpenSelectProductWindow('{0}','{1}');", txtProductName.ClientID, txtProductID.ClientID));
            txtProductName.Attributes.Add("readonly", "readonly");
            txtProductID.Style.Add("display", "none");
        }
    }
}